added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2008 / VBOutlookImportedFormRegion / ThisAddIn.Designer.vb
blobb3a871df4858a1f8b17c11b7a897c392eae396e8
1 '------------------------------------------------------------------------------
2 ' <auto-generated>
3 ' This code was generated by a tool.
4 ' Runtime Version:2.0.50727.4927
6 ' Changes to this file may cause incorrect behavior and will be lost if
7 ' the code is regenerated.
8 ' </auto-generated>
9 '------------------------------------------------------------------------------
11 Option Strict Off
12 Option Explicit On
16 '''
17 <Microsoft.VisualStudio.Tools.Applications.Runtime.StartupObjectAttribute(0), _
18 Global.System.Security.Permissions.PermissionSetAttribute(Global.System.Security.Permissions.SecurityAction.Demand, Name:="FullTrust")> _
19 Partial Public NotInheritable Class ThisAddIn
20 Inherits Microsoft.Office.Tools.Outlook.OutlookAddIn
21 Implements Microsoft.VisualStudio.Tools.Office.IOfficeEntryPoint
23 Friend WithEvents CustomTaskPanes As Microsoft.Office.Tools.CustomTaskPaneCollection
25 <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0")> _
26 Friend WithEvents Application As Microsoft.Office.Interop.Outlook.Application
28 '''
29 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
30 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
31 Public Sub New()
32 MyBase.New("AddIn", "ThisAddIn")
33 End Sub
35 '''
36 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
37 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
38 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
39 Protected Overrides Sub Initialize()
40 MyBase.Initialize
41 Me.Application = Me.GetHostItem(Of Microsoft.Office.Interop.Outlook.Application)(GetType(Microsoft.Office.Interop.Outlook.Application), "Application")
42 Globals.ThisAddIn = Me
43 Global.System.Windows.Forms.Application.EnableVisualStyles
44 Me.InitializeCachedData
45 Me.InitializeControls
46 Me.InitializeComponents
47 Me.InitializeData
48 End Sub
50 '''
51 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
52 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
53 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
54 Protected Overrides Sub FinishInitialization()
55 Me.OnStartup
56 End Sub
58 '''
59 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
60 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
61 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
62 Protected Overrides Sub InitializeDataBindings()
63 Me.BeginInitialization
64 Me.BindToData
65 Me.EndInitialization
66 End Sub
68 '''
69 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
70 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
71 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
72 Private Sub InitializeCachedData()
73 If (Me.DataHost Is Nothing) Then
74 Return
75 End If
76 If Me.DataHost.IsCacheInitialized Then
77 Me.DataHost.FillCachedData(Me)
78 End If
79 End Sub
81 '''
82 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
83 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
84 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
85 Private Sub InitializeData()
86 End Sub
88 '''
89 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
90 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
91 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
92 Private Sub BindToData()
93 End Sub
95 '''
96 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
97 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
98 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
99 Private Sub StartCaching(ByVal MemberName As String)
100 Me.DataHost.StartCaching(Me, MemberName)
101 End Sub
104 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
105 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
106 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
107 Private Sub StopCaching(ByVal MemberName As String)
108 Me.DataHost.StopCaching(Me, MemberName)
109 End Sub
112 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
113 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
114 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
115 Private Function IsCached(ByVal MemberName As String) As Boolean
116 Return Me.DataHost.IsCached(Me, MemberName)
117 End Function
120 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
121 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
122 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
123 Private Sub BeginInitialization()
124 Me.BeginInit
125 Me.CustomTaskPanes.BeginInit
126 End Sub
129 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
130 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
131 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
132 Private Sub EndInitialization()
133 Me.CustomTaskPanes.EndInit
134 Me.EndInit
135 End Sub
138 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
139 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
140 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
141 Private Sub InitializeControls()
142 Me.CustomTaskPanes = New Microsoft.Office.Tools.CustomTaskPaneCollection(Me.ItemProvider, Me.HostContext, "CustomTaskPanes", Me, "CustomTaskPanes")
143 End Sub
146 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
147 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
148 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
149 Private Sub InitializeComponents()
150 End Sub
153 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
154 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
155 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
156 Private Function NeedsFill(ByVal MemberName As String) As Boolean
157 Return Me.DataHost.NeedsFill(Me, MemberName)
158 End Function
161 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
162 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0"), _
163 Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Never)> _
164 Protected Overrides Sub OnShutdown()
165 Me.CustomTaskPanes.Dispose
166 MyBase.OnShutdown
167 End Sub
168 End Class
171 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
172 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0")> _
173 Partial Friend NotInheritable Class Globals
176 Private Sub New()
177 MyBase.New()
178 End Sub
180 Private Shared _ThisAddIn As ThisAddIn
182 Private Shared _ThisRibbonCollection As ThisRibbonCollection
184 Private Shared _ThisFormRegionCollection As ThisFormRegionCollection
186 Friend Shared Property ThisAddIn() As ThisAddIn
188 Return _ThisAddIn
189 End Get
191 If (_ThisAddIn Is Nothing) Then
192 _ThisAddIn = Value
193 Else
194 Throw New System.NotSupportedException
195 End If
196 End Set
197 End Property
199 Friend Shared ReadOnly Property Ribbons() As ThisRibbonCollection
201 If (_ThisRibbonCollection Is Nothing) Then
202 _ThisRibbonCollection = New ThisRibbonCollection
203 End If
204 Return _ThisRibbonCollection
205 End Get
206 End Property
208 Friend Shared ReadOnly Property FormRegions() As ThisFormRegionCollection
210 If (_ThisFormRegionCollection Is Nothing) Then
211 _ThisFormRegionCollection = New ThisFormRegionCollection(Globals.ThisAddIn.GetFormRegions)
212 End If
213 Return _ThisFormRegionCollection
214 End Get
215 End Property
216 End Class
219 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
220 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Tools.Office.ProgrammingModel.dll", "9.0.0.0")> _
221 Partial Friend NotInheritable Class ThisRibbonCollection
222 Inherits Microsoft.Office.Tools.Ribbon.RibbonReadOnlyCollection
224 Default Friend Overloads ReadOnly Property Item(ByVal inspector As Microsoft.Office.Interop.Outlook.Inspector) As ThisRibbonCollection
226 Return Me.GetRibbonContextCollection(Of ThisRibbonCollection)(inspector)
227 End Get
228 End Property
229 End Class
232 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
233 Partial Friend NotInheritable Class ThisFormRegionCollection
234 Inherits Microsoft.Office.Tools.Outlook.FormRegionReadOnlyCollection
237 Public Sub New(ByVal list As System.Collections.Generic.IList(Of Microsoft.Office.Tools.Outlook.IFormRegion))
238 MyBase.New(list)
239 End Sub
241 Friend Overloads Default ReadOnly Property Item(ByVal explorer As Microsoft.Office.Interop.Outlook.Explorer) As WindowFormRegionCollection
243 Return Globals.ThisAddIn.GetFormRegions(Of WindowFormRegionCollection)(explorer)
244 End Get
245 End Property
247 Friend Overloads Default ReadOnly Property Item(ByVal inspector As Microsoft.Office.Interop.Outlook.Inspector) As WindowFormRegionCollection
249 Return Globals.ThisAddIn.GetFormRegions(Of WindowFormRegionCollection)(inspector)
250 End Get
251 End Property
252 End Class
255 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
256 Partial Friend NotInheritable Class WindowFormRegionCollection
257 Inherits Microsoft.Office.Tools.Outlook.FormRegionReadOnlyCollection
258 End Class